package com.example.demo.model.form;

import com.example.demo.model.core.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@Schema(description = "系统配置表单")
public class ConfigForm implements Serializable {

    @NotEmpty(message = "id不能为空", groups = {Update.class})
    @Schema(description = "配置ID")
    private String id;
    @NotEmpty(message = "配置名称不能为空")
    @Schema(description = "配置名称")
    private String configname;
    @NotEmpty(message = "配置键不能为空")
    @Schema(description = "配置键")
    private String configkey;
    @NotEmpty(message = "配置值不能为空")
    @Schema(description = "配置值")
    private String configvalue;
    @Schema(description = "描述")
    private String description;
    @Schema(description = "排序")
    private Integer ordernum;
}
